package com.qtummatrix.service.impl;

import com.qtummatrix.dao.CustomerNewDao;
import com.qtummatrix.entity.CustomerInfoVO;
import com.qtummatrix.service.CustomerNewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * create by Gongshiyong  2019-12-07 11:31
 */
@Service
public class CustomerNewServiceImpl implements CustomerNewService {

    @Autowired
    private CustomerNewDao customerNewDao;

    @Override
    public List<CustomerInfoVO> findCustomerName(int id) {
        List<CustomerInfoVO> list = customerNewDao.customerName(id);
        return list;
    }

    @Override
    public void updateMessage(int id, String customerName, String gender, String tel, String UID, String address,
                              String customerWork,
                              String customerType, String discredit, String litigation, int monthlyIncome, int bankId
            , int goodsId,
                              String customerState, String createTime) {
        customerNewDao.customerUpdate(id, customerName, gender, tel, UID, address, customerWork, customerType,
                discredit, litigation, monthlyIncome, bankId, goodsId, customerState, createTime);

    }

}
